package com.ddwl.goods.mapper.bargain;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.goods.model.bargain.BargainOrder;
import com.ddwl.schema.vo.goods.bargain.BargainOrderSuccessVo;
import com.ddwl.schema.vo.goods.bargain.BargainOrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.Instant;
import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2020/10/26 9:45
 */
@Repository
public interface BargainOrderMapper extends TkMapper<BargainOrder> {

    List<BargainOrderVo> myList(@Param("userId") String userId);

    BargainOrderVo getDetailById(@Param("bargainOrderId") String bargainOrderId);

    BargainOrderSuccessVo getTodaySuccess(@Param("startTime") Instant startTime, @Param("endTime") Instant endTime);

    void changeExpiredStatus();

}
